/*
 * Copyright 2013-2019 Xia Jun(3979434@qq.com).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ***************************************************************************************
 *                                                                                     *
 *                        Website : http://www.farsunset.com                           *
 *                                                                                     *
 ***************************************************************************************
 */
package com.workcell.workdata.im.util;

import com.workcell.workdata.im.constant.MessageAction;

public class MessageX {

	public static String getMessageBody(String action){

		if (action.equals(MessageAction.ACTION_2)){
			return "收到一条系统通知";
		}

		if (action.equals(MessageAction.ACTION_3) || action.equals(MessageAction.ACTION_4)){
			return "收到一条群消息";
		}

		if (action.equals(MessageAction.ACTION_200)){
			return "收到一条公众号消息";
		}

		if (action.equals(MessageAction.ACTION_900) || action.equals(MessageAction.ACTION_901)){
			return "收到联系人通话来电";
		}

		if (action.equals(MessageAction.ACTION_910) || action.equals(MessageAction.ACTION_911)){
			return "收到多人会议通话来电";
		}

		return "收到一条联系人消息";
	}

}
